package com.k.base.jdk.functions.demo4;

public class PersonOneTest {
    public static void main(String[] args) {
        PersonOne.create()
                .setHeart(a -> a.setHeartCode("heart001"))
                .setGan(a -> a.setGanCode("gan001"))
                .setFei(a -> a.setFeiCode("fei001"))
                .isPerson();

        PersonOne.create()
                .setHeart(new PersonOne.Heart("heart999"))
                .setGan(new PersonOne.Gan("gan999"))
                .setFei(new PersonOne.Fei("fei999"))
                .isPerson();
    }
}
